
package org.xwalk.core;


import java.lang.reflect.Constructor;
import java.lang.reflect.Method;

/**
 * This interface is used when XWalkResourceClient offers a http auth
 * request (cancel, proceed) to enable the client to handle the request in their
 * own way. XWalkResourceClient will offer an object that implements
 * this interface to the client and when the client has handled the request,
 * it must either callback with proceed() or cancel() to allow processing to
 * continue.
 */
public interface XWalkHttpAuth {

    public void proceed(String username, String password);


    public void cancel();


    public boolean isFirstAttempt();


}
